package cn.itcast.demo1;

public class Dog extends Animal{
    //优化父类的eat方法
    @Override
    public void eat(){
        System.out.println(getName()+"吃骨头");
    }
}
